<?php
defined('IN_MAIN') or exit('Invalid Access!');

function username_found($username){
global $vars;
$db=$vars["db"];
if(strlen($username)){
 return @mysql_num_rows(mysql_query("select * from $db->users where username='$username'")) or false;
}
}
?>